import request from "@/utils/request.js";
const PREFIX = "/category"
export default {
    getAllParentCategoryList(){
        return request({
            url:`${PREFIX}/parent/list`,
            method:'get'
        })
    },
    getChildrenCategoryList(parentId){
        return request({
            url:`${PREFIX}/children/${parentId}`,
            method:'get'
        })
    }
}